package reuse;

/**
 * 继承Cleaner
 *
 * @author sun.ye
 * @since 2020-05-12 11:08
 */
public class Detergent extends Cleaner {

    public static void main(String[] args) {

    }
}


class Cleaner {
    private String cleaner = "Cleaner";
    public void append(String a){
        cleaner += a;
    }
    public void dilute() {
        append("dilute()");
    }

    public void apply() {
        append("apply()");
    }

    @Override
    public String toString() {
        return cleaner;
    }
}